
require 'base/servlet.rb'
require 'model/item.rb'

# Author:: krdlab
class SampleApp < HTTPServlet::AbstractServlet
  include Demoruby
  def self.config
    {:mount_point => '/sample', :port => 8888}
  end
  def self.init_app
  end
  def test(context)
    Item.new  # ロードテスト
    context.value = "見えるかえ？"
  end
  def list(context)
    #context.value = "forwarding したぜ"
    #forward_to('test')
    redirect_to('test')
  end
end

